decrypt

open suspend override fun <T : Any> decrypt(message: ByteArray, sessionId: CryptoSessionId, handleDecryptedMessage: suspend (decryptedMessage: ByteArray) -> T): T

Decrypts a message. In case of success, calls handleDecryptedMessage with the decrypted bytes.

Throws

in case of failure

CancellationException